|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.widget.BaseAdapter
com.willowtreeapps.android.shared.lv.AmazingAdapter
public abstract class AmazingAdapter
Field Summary | |
---|---|
static int |
PINNED_HEADER_GONE
Pinned header state: don't show the header. |
static int |
PINNED_HEADER_PUSHED_UP
Pinned header state: show the header. |
static int |
PINNED_HEADER_VISIBLE
Pinned header state: show the header at the top of the list. |
static String |
TAG
|
Fields inherited from interface android.widget.AbsListView.OnScrollListener |
---|
SCROLL_STATE_FLING, SCROLL_STATE_IDLE, SCROLL_STATE_TOUCH_SCROLL |
Fields inherited from interface android.widget.Adapter |
---|
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION |
Constructor Summary | |
---|---|
AmazingAdapter()
|
Method Summary | |
---|---|
protected abstract void |
bindSectionHeader(android.view.View view,
int position,
boolean displaySectionHeader)
Configure the view (a listview item) to display headers or not based on displaySectionHeader (e.g. |
abstract void |
configurePinnedHeader(android.view.View header,
int position,
int alpha)
Configures the pinned header view to match the first visible list item. |
abstract android.view.View |
getAmazingView(int position,
android.view.View convertView,
android.view.ViewGroup parent)
read: get view too |
int |
getPinnedHeaderState(int position)
Computes the desired state of the pinned header for the given position of the first visible list item. |
abstract int |
getPositionForSection(int section)
|
abstract int |
getSectionForPosition(int position)
|
abstract Object[] |
getSections()
|
android.view.View |
getView(int position,
android.view.View convertView,
android.view.ViewGroup parent)
|
void |
onScroll(android.widget.AbsListView view,
int firstVisibleItem,
int visibleItemCount,
int totalItemCount)
|
void |
onScrollStateChanged(android.widget.AbsListView view,
int scrollState)
|
Methods inherited from class android.widget.BaseAdapter |
---|
areAllItemsEnabled, getDropDownView, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserver |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface android.widget.Adapter |
---|
getCount, getItem, getItemId |
Field Detail |
---|
public static final String TAG
public static final int PINNED_HEADER_GONE
public static final int PINNED_HEADER_VISIBLE
public static final int PINNED_HEADER_PUSHED_UP
Constructor Detail |
---|
public AmazingAdapter()
Method Detail |
---|
public int getPinnedHeaderState(int position)
PINNED_HEADER_GONE
, PINNED_HEADER_VISIBLE
or
PINNED_HEADER_PUSHED_UP
.
public void onScroll(android.widget.AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount)
onScroll
in interface android.widget.AbsListView.OnScrollListener
public void onScrollStateChanged(android.widget.AbsListView view, int scrollState)
onScrollStateChanged
in interface android.widget.AbsListView.OnScrollListener
public final android.view.View getView(int position, android.view.View convertView, android.view.ViewGroup parent)
getView
in interface android.widget.Adapter
protected abstract void bindSectionHeader(android.view.View view, int position, boolean displaySectionHeader)
public abstract android.view.View getAmazingView(int position, android.view.View convertView, android.view.ViewGroup parent)
public abstract void configurePinnedHeader(android.view.View header, int position, int alpha)
header
- pinned header view.position
- position of the first visible list item.alpha
- fading of the header view, between 0 and 255.public abstract int getPositionForSection(int section)
getPositionForSection
in interface android.widget.SectionIndexer
public abstract int getSectionForPosition(int position)
getSectionForPosition
in interface android.widget.SectionIndexer
public abstract Object[] getSections()
getSections
in interface android.widget.SectionIndexer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |